<template>
  <van-swipe
    class="my-swipe"
    :autoplay="autoplay"
    indicator-color="white"
  >
    <van-swipe-item
      v-for="item in lunbolist"
      :key="item.id"
    >
      <img
        :src="item.src||item.img"
        alt=""
      >
    </van-swipe-item>
  </van-swipe>
</template>
<script>
export default {
  // props: ['lunbolist', 'autoplay'],
  props: {
    lunbolist: {
      type: Array
    },
    autoplay: {
      type: Number,
      default: 0
    }
  },
  data: () => ({})
}
</script>
<style lang="less" scoped>
.goodsinfo {
  .my-swipe .van-swipe-item {
    line-height: 200px;
    height: 200px;
    text-align: center;
    img {
      width: 50%;
      height: 100%;
    }
  }
  .van-grid-item__icon {
    font-size: 50px;
  }
}
</style>
